var formatNumber = function(number) {
    return (number = number.toString())[1] ? number : "0" + number;
};

module.exports = {
    formatTime: function(date) {
        var year = date.getFullYear(), month = date.getMonth() + 1, day = date.getDate(), hours = date.getHours(), minutes = date.getMinutes();
        return date = date.getSeconds(), [ year, month, day ].map(formatNumber).join("/") + " " + [ hours, minutes, date ].map(formatNumber).join(":");
    }
};